package com.rpc.test;

import com.rpc.client.RpcClientProxy;
import com.rpc.entity.HelloObject;
import com.rpc.service.HelloService;
import com.rpc.service.serviceImpl.HelloServiceImpl;

public class testClient {
    public static void main(String[] args) {
             RpcClientProxy proxy = new RpcClientProxy("127.0.0.1", 8080);
        HelloService proxy1 = proxy.getProxy(HelloService.class);
        final HelloObject nihao1 = new HelloObject(1, "nihao");
        String nihao = proxy1.Hello(nihao1);
        System.out.println(nihao);

    }
}
